package easing 
{
	/**
	 * ...
	 * @author carlor
	 */
	public class Sinusoidal 
	{
		
		public function Sinusoidal() 
		{
			
		}
		
		static public function easingIn(t: Number, b: Number, c: Number, d: Number): Number
		{
			return -c * Math.cos(t / d * (Math.PI / 2)) + c + b;
		}
		
		static public function easingOut(t: Number, b: Number, c: Number, d: Number): Number
		{
			return c * Math.sin(t / d * (Math.PI / 2)) + b;
		}
		
		static public function easingInout(t: Number, b: Number, c: Number, d: Number): Number
		{
			return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b;
		}
	}

}